# -*- encoding:utf-8 -*-
# @time:2023-05-21 0:25
# @Author : serein
# @Email: serein@qq.com
# @File:urls.py
# @Software: PyCharm
from rest_framework.routers import DefaultRouter

from cart.views import CartViewSet
urlpatterns = []
#路由器的简写是建立在视图使用view.model上面的
router = DefaultRouter()#创建路由器
router.register('cart', CartViewSet, basename='cart')
urlpatterns += router.urls#拼接路由器